package com.sea.base.vm

enum class NetState {
    LOADING, SUCCESS, EMPTY, FAIL,
}

enum class UiState {
    INIT, REFRESH, MORE,
}

open class NetStateData(val netState: NetState, val tag: String, val info: BaseNetException?)

class UiNetStateData(val uiState: UiState, netState: NetState, tag: String, info: BaseNetException?) : NetStateData(netState, tag, info) {
    constructor(uiState: UiState, nsd: NetStateData) : this(uiState, nsd.netState, nsd.tag, nsd.info)
}